//
//  ZYAddStrongCouseDetailThreeCell.m
//  优学荟管理系统
//
//  Created by edz on 2017/11/27.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "ZYAddStrongCouseDetailThreeCell.h"
#import "ZYAddStrongCourseDetailThreeModel.h"
@implementation ZYAddStrongCouseDetailThreeCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setUpSuperViews];
    }
    
    return self;
    
}


- (void)assignByZYAddStrongCourseDetailThreeModel:(ZYAddStrongCourseDetailThreeModel *)model{
     self.nameLabel.text = [NSString stringWithFormat:@"%@",model.content];
    
}



- (void)setUpSuperViews{
    
    
    self.nameLabel = [UILabel new];
    self.nameLabel.font = [UIFont systemFontOfSize:13];
    self.nameLabel.textColor = ColorRGB(153,153,153);
    self.nameLabel.numberOfLines = 0;
    [self.contentView addSubview:self.nameLabel];
    
    self.nameLabel.text = @"要素一:张宇";
    
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.offset(10);
        make.top.offset(10);
        make.right.equalTo(self).offset(-10);
    }];
    
    
    [self.contentView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset(0);
        make.bottom.mas_equalTo(self.nameLabel).offset(10);
    }];
    
    
}

@end
